<template>
  <div>
    <header>
      <!-- 导航栏 -->
     <Menu v-if="authStore.loggedIn"></Menu>
    </header>

    <main class="main-layout">
      <!-- 内容区域 -->
      <NuxtPage />
    </main>

    <footer>
      <!-- 底部信息 -->
      &copy; 2023 Your Company Name
    </footer>
  </div>
</template>

<script setup>
import { useAuthStore } from '~/stores/index';
const authStore = useAuthStore()
</script>

<style scoped>
/* 添加样式 */
header {
  background-color: #f8f9fa;
}
.main-layout{
  height: 100vh;
}
</style>
